<#include "/common/head.ftl">

<@showTitle title="${i18n.getMessage('report')}">
</@showTitle>

<div id="error" style="display:none"></div>

<form action="offering/reportTestResult.sgt" validator="offering/validateTestResult.sgt" onsubmit="popupSubmitFormValidation(this); return false;">
	<table id="dataTable" cellspacing="5" cellpadding="0" align="center">
		<tr>
			<td class="name"><@required/>${i18n.getMessage('fromDate')}:</td>
			<td><input type="text" id="fromDate" name="fromDate" value="${fromDate?date}" style="width:150px"/><img class="calendarImg" src="images/calendar/calendar.gif" onclick="displayCalendar(document.forms[0].fromDate, '${i18n.getMessage('format.date')}', this)"/></td>
		</tr>
		<tr>
			<td class="name"><@required/>${i18n.getMessage('toDate')}:</td>
			<td><input type="text" id="toDate" name="toDate" value="${toDate?date}" style="width:150px"/><img class="calendarImg" src="images/calendar/calendar.gif" onclick="displayCalendar(document.forms[0].toDate, '${i18n.getMessage('format.date')}', this)"/></td>
		</tr>
		<tr>
			<td class="name"></td>
			<td>
				<input type="submit" value="${i18n.getMessage('testResult')}" style="width:100px" class="button_style"/>
				<input type="button" value="${i18n.getMessage('studentList')}" onclick="reportStudentList()" style="width:100px" class="button_style"/>
			</td>
		</tr>
	</form>

<div id="scheduleSearchResultDiv"></div>

<script>
	
	reportStudentList = function() {
		var url = 'study/reportStudentList.sgt?fromDate=' + $('fromDate').value + '&toDate=' + $('toDate').value;
		pp(url);
	}
	
</script>